package com.cskaoyan.service.wx.nj;

import com.cskaoyan.bean.wx.nj.CskaoyanmallGoods;
import com.cskaoyan.bean.wx.nj.CskaoyanmallGoodsExample;
import com.cskaoyan.mapper.wx.nj.CskaoyanmallGoodsMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CskaoyanmallGoodsServiceImpl implements CskaoyanmallGoodsService{

    @Resource
    private CskaoyanmallGoodsMapper cskaoyanmallGoodsMapper;

    @Override
    public long countByExample(CskaoyanmallGoodsExample example) {
        return cskaoyanmallGoodsMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(CskaoyanmallGoodsExample example) {
        return cskaoyanmallGoodsMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return cskaoyanmallGoodsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(CskaoyanmallGoods record) {
        return cskaoyanmallGoodsMapper.insert(record);
    }

    @Override
    public int insertSelective(CskaoyanmallGoods record) {
        return cskaoyanmallGoodsMapper.insertSelective(record);
    }

    @Override
    public List<CskaoyanmallGoods> selectByExample(CskaoyanmallGoodsExample example) {
        return cskaoyanmallGoodsMapper.selectByExample(example);
    }

    @Override
    public CskaoyanmallGoods selectByPrimaryKey(Integer id) {
        return cskaoyanmallGoodsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(CskaoyanmallGoods record, CskaoyanmallGoodsExample example) {
        return cskaoyanmallGoodsMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(CskaoyanmallGoods record, CskaoyanmallGoodsExample example) {
        return cskaoyanmallGoodsMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(CskaoyanmallGoods record) {
        return cskaoyanmallGoodsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CskaoyanmallGoods record) {
        return cskaoyanmallGoodsMapper.updateByPrimaryKey(record);
    }

}
